<?php include _include(APP_PATH.'view/htm/header.inc.htm');?>


<article>
<!-- banner begin-->
  <div class="banner">
    <div class="swiper-container">
      <div class="swiper-wrapper">

        <div class="swiper-slide"><a href=""><img src="http://menhu.yangqq.com/skin/menhu/images/banner1.jpg"><span>广告</span></a></div>

        <div class="swiper-slide"><a href=""><img src="http://menhu.yangqq.com/skin/menhu/images/banner1.jpg"><span>独家</span></a></div>
      </div>
      <div class="swiper-pagination"></div>
      <div class="swiper-button-next"></div>
      <div class="swiper-button-prev"></div>
    </div>
  </div>

<!-- banner end-->

<!-- headline-boc begin-->
  <div class="headline-box whitebg">
    <div class="headline-news">
      <h2 class="headline-news-title"><span>最新</span><a href="/article-23.html"  title="个人博客，属于我的小世界！">个人博客，属于我的小世界！</a></h2>
      <p class="headline-news-smalltext">个人博客，用来做什么？我刚开始就把它当做一个我吐槽心情的地方，也就相当于一个网络记事本，写上一些关于自己生活工作中的小情小事，也会放上一些照片，音乐。每天工作回家后就能访问自己的网站，一边听着音乐，一边写写文章。</p>

     <ul class="headline-news-list">
<?php $index_top=explode(',',$blogs['index_top']);  for($i=0;$i<count($index_top);$i++){ $now_article=thread__read($index_top[$i])['subject'];
  ?>
        <li><a href="/article-<?php echo   $index_top[$i]; ?>.html" title="<?php echo  $now_article;   ?>"><?php echo  $now_article;   ?></a></li>
<?php   }  ?>
      </ul>
    </div>
  </div>
<!-- headline-box end-->

<div class="clear blank"></div>
<div class="tuijian-news box whitebg tab-num01">
  <div class="gd-box">
    <ul id="tab">
      <li class="tab-current">最新文章</li>
      <li class="">推荐文章</li>
    </ul>
  </div>
    <div id="tab-content">
      <section class="tab-box" style="display: block;">
        <!-- 最新文章-大图区域 start-->
        <div class="tuijian-news-pic"><i><a href="/article-<?php echo $newthread['tid'];  ?>.html">
          <img src="<?php echo $newImg;  ?>" alt="<?php echo $newthread['subject'];  ?>">
          <span>推荐</span></a></i>
          <h2><a href="/article-<?php echo $newthread['tid'];  ?>.html">
            <?php echo $newthread['subject'];  ?></a>
          </h2>
          <p><?php echo xn_substr(strip_tags($newPost['message']),0,100);  ?></p>
          <a href="/article-<?php echo $newthread['tid'];  ?>.html" class="btn-blue-border">阅读全文</a>
        </div>
      <!-- 最新文章-大图区域 end-->

        <!-- 最新文章-文章列表区域 start-->
        <div class="tuijian-news-list">
          <ul>
            <?php foreach ($newthreads as $thread1) { ?>
            <li>
              <a  href="/article-<?php echo $thread1['tid']; ?>.html" title="<?php echo $thread1['subject']; ?>">
                <span>
                  <b><?php echo $thread1['create_date_fmt']; ?></b>

                </span>
                <p><?php echo "【{$thread1['forumname']}】".$thread1['subject']; ?></p>
                <h3 style="text-align: right;"><?php $date=date("Y-m-d",$thread1['create_date']);
                  echo "{$date}   "; ?>  </h3>
              </a>
            </li>
            <?php } ?>
          </ul>
        </div>
        <!-- 最新文章-文章列表区域 end-->
      </section>


      <section class="tab-box" style="display: none;">
        <!-- 推荐文章-大图区域 -->
        <div class="tuijian-news-pic"><i><a href="/article-<?php echo $topthread['tid'];  ?>.html">
          <img src="https://www.yangqq.com/d/file/news/life/2018-06-29/75842f4d1e18d692a66c38eb172a40ab.jpg" alt="<?php echo $topthread['subject'];  ?>">
          <span>推荐</span></a></i>
          <h2>
            <a href="/article-<?php echo $topthread['tid'];  ?>.html">
            <?php echo $topthread['subject'];  ?></a>
          </h2>
          <p><?php echo xn_substr(strip_tags($topPost['message']),0,100);  ?></p>
        </div>
        <!-- 推荐文章-大图区域 end-->

        <!-- 推荐文章-文章列表区域 -->
        <div class="tuijian-news-list">
          <ul>
            <?php foreach ($topthreads as $thread1) { ?>
            <li>
              <a  href="/article-<?php echo $thread1['tid'];  ?>.html" title="<?php echo $thread1['subject']; ?>">
                <span>
                  <b><?php echo $thread1['create_date_fmt']; ?></b>

                </span>
                <p><?php echo $thread1['subject']; ?></p>
                <h3 style="text-align: right;"><?php $date=date("Y-m-d",$thread1['create_date']);
                  echo "{$date} [{$thread1['forumname']}]  "; ?>  </h3>
              </a>
            </li>
            <?php } ?>
          </ul>
        </div>
        <!-- 推荐文章-文章列表区域 end-->
        <span class="tab-a-more"><a href="/blog/life/" title="更多程序人生"><i></i><i></i><i></i></a></span>
      </section>
    </div>
</div>

<!-- news start-->
<?php if(!empty($forumArr[2])){ ?>
<div class="clear blank"></div>
<div class="news box whitebg tab-num03">
      <div class="gd-box">
        <ul id="tab">
           <?php $i=0;foreach ($forumArr[2] as $forms) { ?>
            <li class="<?php if($i==0) echo 'tab-current'; ?>"><?php echo $forms['name'] ; $i++;  ?></li>
            <?php } ?>
        </ul>
      </div>

<div id="tab-content">
   <?php foreach ($articles[2] as $article1) { ?>
      <section class="tab-box">
        <div class="news-zuixin">
          <ul>
            <?php foreach ($article1 as $article) { ?>
            <li>
              <section>
                <a href="/seo/baidu/100.html" class="news-zuixin-pic">
                 <img src="http://menhu.yangqq.com/skin/menhu/images/pic06.jpg">
                </a>
                <h2><a href="/article-<?php echo $article['tid'] ;  ?>.html"><?php echo $article['subject'];   ?></a></h2>
                <p><?php $message=post_read($article['firstpid'])['message']; echo xn_substr(strip_tags($message),0,90);   ?></p>
                <span>
                  <?php echo get_fenci_tag($article['tid']);   ?>
                </span>
              </section>
            </li>
            <?php } ?>
          </ul>
        </div>
        <span class="tab-a-more"><a href="/seo/baidu/" title="更多百度SEO"><i></i><i></i><i></i></a></span></section>

      <?php } ?>
    </div>
</div>
<?php } ?>
<!-- news end-->

<!-- 文字版cate0 开始 -->
<?php if(!empty($forumArr[0])){ ?>
<div class="clear blank"></div>
<div class="wenzi whitebg box tab-num05">
    <!-- 文字版选项 开始 -->
    <div class="gd-box">
        <ul id="tab">
           <?php $i=0;foreach ($forumArr[0] as $forms) { ?>
            <li class="<?php if($i==0) echo 'tab-current'; ?>"><?php echo $forms['name'] ; $i++;  ?></li>
            <?php } ?>
       </ul>
    </div>
    <!-- 文字版选项 结束 -->

    <!-- 文字版内容列列表 开始 -->
    <div id="tab-content">
      <?php  foreach ($articles[0] as $article1) { ?>
       <section class="tab-box">
        <div class="wenzi-list">
          <ul class="wenzi-left">
            <?php foreach ($article1 as $article) { ?>
            <li><span><?php echo date("Y-m-d",$article['create_date']) ;  ?></span><a href="/article-<?php echo $article['tid'] ;  ?>.html" title="<?php echo $article['subject'] ;  ?>"><?php echo $article['subject'] ;  ?></a></li>
            <?php } ?>
           </ul>

          <ul class="wenzi-right">
            <?php $i=0;foreach ($article1 as $article) {
                if($i<6){ $i++; continue;}

             ?>
            <li><span><?php echo date("Y-m-d",$article['create_date']) ;  ?></span><a href="/article-<?php echo $article['tid'] ;  ?>.html" title="<?php echo $article['subject'] ;  ?>"><?php echo $article['subject'] ;  ?></a></li>
            <?php } ?>
          </ul>

        </div>
        <span class="tab-a-more"><a href="/marketing/extension/" title="更多网络推广"><i></i><i></i><i></i></a></span>
      </section>

      <?php } ?>
      <!-- 文字版内容列列表 结束 -->

</div>
  </div>
 <?php } ?>
<!-- 文字版cate0 结束 -->

<!-- 图片版 cate1 开始 -->
<?php if(!empty($forumArr[1])){ ?>
  <div class="clear blank"></div>
  <div class="videos box whitebg tab-num04">
    <!-- 图片版选项 开始 -->
    <div class="gd-box">
        <ul id="tab">
           <?php  $i=0;foreach ($forumArr[1] as $forms) { ?>
            <li class="<?php if($i==0) echo 'tab-current'; ?>"><?php echo $forms['name'] ; $i++;  ?></li>
            <?php } ?>
       </ul>
    </div>
    <!-- 图片版选项 结束 -->

    <div id="tab-content">
      <?php  foreach ($articles[1] as $article1) { ?>
       <section class="tab-box">
        <div class="videos-list">
          <ul>
            <?php foreach ($article1 as $article) { ?>
            <li><a href="/article-<?php echo $article['tid'] ;  ?>.html"><i><img src="http://menhu.yangqq.com/skin/menhu/images/pic02.jpg"></i>
              <h2><?php echo $article['subject'] ;  ?></h2>
              <p><b class="datetime"><?php echo date("Y-m-d",$article['create_date']) ;  ?></b><span class="viewd"><?php echo $article['views'] ;  ?></span></p>
              </a>
            </li>
             <?php } ?>
          </ul>
        </div>
        <span class="tab-a-more"><a href="/course/web/" title="更多前端设计"><i></i><i></i><i></i></a></span>
      </section>
       <?php } ?>
    </div>
  </div>
 <?php } ?>
<!-- 图片版 cate1 结束 -->

<!-- 广告 开始-->
<div class="ad ad-all">
  <a href='https://promotion.aliyun.com/ntms/act/qwbk.html?userCode=l1qstn8f' target=_blank>

  </a>
</div>
<!-- 广告 结束-->

<!-- 下载版 cate3 开始 -->
<?php if(!empty($forumArr[3])){ ?>
  <div class="blank clear"></div>
  <div class="clear"></div>
 <div class="wenzi whitebg box tab-num06">
    <!-- 下载版选项 开始 -->
    <div class="gd-box">
        <ul id="tab">
           <?php $i=0;foreach ($forumArr[3] as $forms) { ?>
            <li class="<?php if($i==0) echo 'tab-current'; ?>"><?php echo $forms['name'] ; $i++;  ?></li>
            <?php } ?>
       </ul>
    </div>
    <!-- 下载版选项 结束 -->

    <div id="tab-content">
      <?php  foreach ($articles[3] as $article1) { ?>
       <section class="tab-box">
        <div class="down-list">
          <ul>
            <?php foreach ($article1 as $article) { ?>
            <li>
              <a href="/article-<?php echo $article['tid'] ;  ?>.html"  class="dl-link">
              <i><img src="http://menhu.yangqq.com/skin/menhu/images/ex01.png" ></i>
              <h2><?php echo $article['subject'] ;  ?><span>0积分</span></h2>
              <p><?php $message=post_read($article['firstpid'])['message']; echo xn_substr(strip_tags($message),0,90);   ?></p>
              </a><a href="/article-<?php echo $article['tid'] ;  ?>.html" class="d-list-hover"><em>前往下载</em></a></li>
              <?php } ?>
          </ul>
        </div>
        <span class="tab-a-more"><a href="/download/html/" title="更多网页制作"><i></i><i></i><i></i></a></span>
      </section>
       <?php } ?>

    </div>
  </div>
<?php } ?>
<!-- 下载版 cate3 结束 -->

<!-- 友情链接 开始 -->
  <div class="clear blank"></div>
  <div class="blank clear"></div>
  <div class="links whitebg box ">
    <div class="news-title">
      <h2>友情链接</h2>
    </div>
    <ul>
           <li><a href="https://bbs.xiuno.com" target="_blank">xiunobbs</a></li>
           <li><a href="https://gitee.com/xiuno/xiunobbs" target="_blank">git-xiunobbs</a></li>
            <li><a href="http://tool.7we.net/" target="_blank">柒微工具箱</a></li>
          </ul>
  </div>
<!-- 友情链接 结束 -->

<div class="blank clear"></div>
</article>
<?php include _include(APP_PATH.'view/htm/footer.inc.htm');?>

<script type="text/javascript">
  jQuery(document).ready(function($){

  //banner
    var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        nextButton: '.swiper-button-next',
        prevButton: '.swiper-button-prev',
        paginationClickable: true,
        spaceBetween: 30,
        centeredSlides: true,
        autoplay: 5000,
        autoplayDisableOnInteraction: false
    });



});
</script>
